package handler

import (
	"net/http"
	"wxapi/response"

	"wxapi/internal/logic"
	"wxapi/internal/svc"
)

func GetSwiperHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := logic.NewGetSwiperLogic(r.Context(), svcCtx)
		resp, err := l.GetSwiper()
		response.Response(w, resp, err)
	}
}
